package com.dlc.felear.xiaoensale.entity;

public class DeviceGoodsInfo {

    /**
     * code : 1
     * msg : 操作成功！
     * data : {"goodsId":"b8f6b472f14741e79a32428a9686bc8b","goodsPrice":5.0E-4,"goodsOriginalPrice":0.001,"goodsUnit":2,"goodsName":"梅菜扣肉","goodsWeight":1,"goodsOffset":499}
     * time : 1595821604497
     */

    private int code;
    private String msg;
    private GoodsInfo data;
    private long time;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public GoodsInfo getData() {
        return data;
    }

    public void setData(GoodsInfo data) {
        this.data = data;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public static class GoodsInfo {
        /**
         * goodsId : b8f6b472f14741e79a32428a9686bc8b
         * goodsPrice : 5.0E-4
         * goodsOriginalPrice : 0.001
         * goodsUnit : 2
         * goodsName : 梅菜扣肉
         * goodsWeight : 1.0
         * goodsOffset : 499
         */

        private String goodsId;
        private double goodsPrice;
        private double goodsOriginalPrice;
        private int goodsUnit;
        private String goodsName;
        private double goodsWeight;
        private int goodsOffset;

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public double getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(double goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public double getGoodsOriginalPrice() {
            return goodsOriginalPrice;
        }

        public void setGoodsOriginalPrice(double goodsOriginalPrice) {
            this.goodsOriginalPrice = goodsOriginalPrice;
        }

        public int getGoodsUnit() {
            return goodsUnit;
        }

        public void setGoodsUnit(int goodsUnit) {
            this.goodsUnit = goodsUnit;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public double getGoodsWeight() {
            return goodsWeight;
        }

        public void setGoodsWeight(double goodsWeight) {
            this.goodsWeight = goodsWeight;
        }

        public int getGoodsOffset() {
            return goodsOffset;
        }

        public void setGoodsOffset(int goodsOffset) {
            this.goodsOffset = goodsOffset;
        }
    }
}
